const store = {
  state:{
    //放数据
    username: ''
  },
  actions:{
    //放方法
    setUsername(newState:{username:string}, action:{type:string, val:string}){
      newState.username = action.val
    }
  },
  asyncActions:{
    
  },
  actionNames:{}
}

const actionNames = {}
for(let key in store.actions) actionNames[key] = key
store.actionNames = actionNames
export default store